package cn.chainco.cts.iservice;

import java.util.List;
import java.util.Map;

import cn.chainco.cts.jdo.User;

public interface IUserManager extends CommonManager{
	public User findByNameAndPass(final String name, final String pwd);

	public List<User> findByName(final String name);

	public <E>List<E> findSqlByElist(String sql, Class className, Map<String, String> mp);

	public List<User> findUser(String userName, String createTime, Integer status, Map<String, String> searchCond);

	/**
	 * 删除用户和相关连的数据
	 * @param company
	 * @return
	 */
	public int delUserByAll(User user);
}
